package com.bwda.dsrs.common.base;

import java.io.Serializable;

/**
 * 返回类
 *
 * @author yanyuemei
 * @date 2019/4/2
 */
public class ApiResult<T> implements Serializable {

    private static final long serialVersionUID = 1L;

    private T data;

    private String code;

    private String message;

    public ApiResult(String code, String message, T data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }

    public ApiResult(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public ApiResult() {
    }

    public T getData() {
        return data;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
